package com.neusoft.demo5;

public class Dog extends Pet {
    @Override
    public void toHospital() {
        this.setHealth(60);
        System.out.println("吃药、打针......");
    }

    public void game() {
        System.out.println("catchingFly......");
    }
}
